package com.systop.asset.enums;

public enum HttpCodeEnum {

    NEED_LOGIN(401, "需要登录后操作"),

    NO_OPERATOR_AUTH(403, "无权限操作"),

    USER_NOT_EXIST(501, "用户名不存在"),

    PHONE_NOT_NULL(502, "手机号不能为空"),

    CODE_NOT_NULL(503, "验证码不能为空"),

    CODE_ERROR(504, "验证码错误"),

    MESSAGE_SEND_FAILURE(505, "消息发送失败"),

    CODE_SEND_FREQUENT(505, "请不要频繁发送验证码"),

    PHONE_OR_CODE_ERROR(506, "手机号或验证码错误"),

    BODY_NAME_NOT_NULL(507, "主体不能为空"),

    PASSWORD_NOT_NULL(508, "密码不能为空"),

    PHONE_OR_PASSWORD_ERROR(509, "账号或密码错误"),

    UNIFY_CREDIT_ERROR(510, ""),

    PHONE_EXIST(511, "手机号已存在"),

    PHONE_NOT_EXIST(512, "手机未注册"),

    LOGIN_ERROR(513, "登录失败"),

    PHONE_ERROR(514, "手机号格式错误"),

    USER_LOCKED(515,"用户已被禁用，请联系管理员"),
    FILE_TYPE_ERROR(516, "文件类型错误，请上传jpg、png、.pdf.jpeg、.gif、.bmp、.tiff文件"),

    AUTH_INFO_IS_EXIST(520,"认证信息已存在，若重复提交请删除之前的认证信息或进行修改"),

    AUTH_INFO_NOT_EXIST(521,"认证信息不存在"),

    AUTH_INFO_NOT_PASS(522,"认证信息待审核"),

    FILE_SIZE_EXCEED_LIMIT(556, "文件大小超出限制"),
    INVALID_FILE_TYPE(557, "不允许的文件类型"),
    ILLEGAL_FILENAME(558, "非法文件名"),
    FILE_UPLOAD_FAILURE(559, "文件上传失败"),
    FILE_MIME_TYPE_MISMATCH(560, "实际文件类型与声明的类型不符"),
    VIRUS_DETECTED(561, "文件中检测到病毒"),
    TOO_MANY_REQUESTS(562, "请求过于频繁"),
    INTERNAL_SERVER_ERROR(563, "内部服务器错误"),
    ASSET_NOT_EXIST(564, "资产不存在"),
    PARAM_NOT_NULL(565, "参数不能为空"),

    DELETE_TEMPLATE_ERROR(566,"该流程被审核中，删除失败"),
    REVOKE_PROCESS_ERROR(567,"撤销失败，没有权限撤销"),
    REVOKE_PROCESS_ERR(568,"撤销失败，申请已完成");


    int code;

    String msg;

    HttpCodeEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
